package com.gzh.redis_to_mq.controller;

import com.gzh.redis_to_mq.producer.Publisher;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Description TODO
 * @Author gzh
 * @Date 2020/10/26 13:38
 */
@RestController
public class TestController {

    @Autowired
    Publisher publisher;

    @GetMapping("/send")
    public void send() {
        System.out.println("controller");
        publisher.publish("你好哇");
    }
}
